import packageAxios from '../request';
const axios = packageAxios.instance;
const apiVersion = '/api/v1/message';

/**
 * @params apiVersion
 * @params params
 * */

const message = {
    get (params) {
        return axios.get(apiVersion, params);
    },
    getTabListMessage (params) {
        return axios.get(apiVersion + '/tabMessage', { params });
    },
    getAllUnReadMessageNumber (params) {
        return axios.get(apiVersion + '/unRead', { params });
    },
    resetAllUnReadMessageStatus (params) {
        return axios.put(apiVersion, params);
    },
    delete (params) {
        return axios.delete(apiVersion, { params });
    }
};

export default message;
